<template>
  <div>
    <el-col :span="12">
      <div class="row_s">
        <p class="word_s"><span>用户id</span></p>
        <p class="right_column_s">
          <span>{{ user.id }}</span>
        </p>
      </div>

      <div class="row_s">
        <p class="word_s"><span>姓名</span></p>
        <p class="right_column_s">
          <span>{{ user.realname }}</span>
        </p>
      </div>

      <div class="row_s">
        <p class="word_s"><span>手机号</span></p>
        <p class="right_column_s">
          <span>{{ user.mobile }}</span>
        </p>
      </div>

    </el-col>
    <el-col :span="12">
      <div class="row_s">
        <p class="word_s"><span>邮箱</span></p>
        <p class="right_column_s">
          <span>{{ user.email }}</span>
        </p>
      </div>
      <div class="row_s">
        <p class="word_s"><span>账户余额</span></p>
        <p class="right_column_s">
          <span>{{ user.academicCurrency }}</span>
        </p>
      </div>

      <div class="row_s">
        <p class="word_s"><span>更新时间</span></p>
        <p class="right_column_s">
          <span>{{ timestampToDate(user.createTime) }}</span>
        </p>
      </div>


    </el-col>
  </div>
</template>

<script>
import { timestampToDate } from "@/utils/time"
export default {
  props: {
    user: {
      type: Object,
      default: {}
    }
  },
  methods: {
    timestampToDate
  }
}
</script>